package com.maybach.core.dal.mapper;

import com.maybach.common.model.CarFormalitiesDO;
import com.maybach.common.query.CarFormalitiesQuery;

import java.util.List;

import org.apache.ibatis.annotations.Param;

/**
 * MyBatis Mapper for CarFormalities.
 */
public interface CarFormalitiesMapper {
    /**
     * query count by query condition.
     */
    int countByQuery(CarFormalitiesQuery query);

    /**
     * delete by query condition.
     */
    int deleteByQuery(CarFormalitiesQuery query);

    /**
     * delete by primary key.
     */
    int deleteByPrimaryKey(CarFormalitiesDO record);

    /**
     * insert selective.
     */
    int insertSelective(CarFormalitiesDO record);

    /**
     * select by query condition.
     */
    List<CarFormalitiesDO> selectByQuery(CarFormalitiesQuery query);

    /**
     * select by primary key.
     */
    CarFormalitiesDO selectByPrimaryKey(Long id);

    /**
     * update by query condition selective.
     */
    int updateByQuerySelective(@Param("record") CarFormalitiesDO record, @Param("query") CarFormalitiesQuery query);

    /**
     * update by query condition.
     */
    int updateByQuery(@Param("record") CarFormalitiesDO record, @Param("query") CarFormalitiesQuery query);

    /**
     * update by primary key selective.
     */
    int updateByPrimaryKeySelective(CarFormalitiesDO record);
}